﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Westwind.Utilities.Configuration;
using Managistics.Model;
using Managistics.Core.Services;
using Managistics.Core.Services.Impl;
using Managistics.Warehouse.Controllers.Interfaces;

namespace Managistics.Warehouse.Configuration
{
    /// <summary>
    /// Summary description for Class1
    /// </summary>
    public static class GlobalApp
    {
        public static ApplicationConfiguration Configuration { get; set; }

        /// <summary>
        /// All basic data
        /// </summary>
        public static IList<Good> AllGoods { get; set; }
        public static IList<Supplier> AllSuppliers { get; set; }
        public static IList<Customer> AllCustomers { get; set; }
        public static IList<Employee> AllEmployees { get; set; }

        /// <summary>
        /// Control the loading screen
        /// </summary>
        public static ILoadingController LoadingScreen { get; set; }
        public static string ThreadOfWaiting = string.Empty;

        public static readonly log4net.ILog Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        static GlobalApp()
        {
            // Create an instance of the class with default provider
            Configuration = new ApplicationConfiguration();
            Configuration.Initialize();
        }
    }
}